package com.wanxin.car.util.helper;

import java.util.Date;

import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.support.ConfigurableWebBindingInitializer;
import org.springframework.web.context.request.WebRequest;

/**
 * add date format binder
 * @author lqk
 */
public class MyWebBindingInitializer extends ConfigurableWebBindingInitializer{

	@Override
	public void initBinder(WebDataBinder binder, WebRequest request) {
		super.initBinder(binder, request);
		binder.registerCustomEditor(Date.class,new MyDateEditor(null, true));
	}

	
}
